// BottomWidget.cpp
#include "BottomWidget.h"
#include "widgets/bottomWidgetContent/TableWidget.h"

BottomWidget::BottomWidget(QWidget *parent)
    : QWidget(parent),
      m_layout(new QHBoxLayout(this)), // 主布局
      m_leftWidget(new LeftWidget(this)), // 左侧部件
      m_rightWidget(new TableWidget(this)) // 右侧部件
{
    // 设置对象名用于QSS选择
    this->setObjectName("bottomContainer");
    m_leftWidget->setObjectName("leftPanel");
    m_rightWidget->setObjectName("rightPanel");

    // 主布局配置
    m_layout->setContentsMargins(0, 0, 0, 0);
    m_layout->setSpacing(0);

    // 添加子部件
    m_layout->addWidget(m_leftWidget);
    m_layout->addWidget(m_rightWidget, 1);
}